# coding = utf-8
s='呵呵'
if isinstance(s, unicode):
    print(s.encode('gb2312'))
else:
    print(s.decode('utf-8').encode('gb2312'))